package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息对象 users
 * 
 * @author ruoyi
 * @date 2025-05-08
 */
public class Users extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long userId;

    /** OPENID */
    @Excel(name = "OPENID")
    private String openId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phoneNum;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String avatarUrl;

    /** 用户等级 */
    @Excel(name = "用户等级")
    private Long lv;

    /** 用户经验值  */
    @Excel(name = "用户经验值 ")
    private Long exp;

    /** 体力值 */
    @Excel(name = "体力值")
    private Long energys;

    /** 当前人物id */
    @Excel(name = "当前人物id")
    private Long roleId;

    /** 当前飞行器id */
    @Excel(name = "当前飞行器id")
    private Long aircraftId;

    /** 用户灵石数量 */
    @Excel(name = "用户灵石数量")
    private Long diamond;

    /** 用户极品灵石数量 */
    @Excel(name = "用户极品灵石数量")
    private Long premiumDiamond;

    /** 通用道具数量 */
    @Excel(name = "通用道具数量")
    private Long universalProps;

    /** 最高分 */
    @Excel(name = "最高分")
    private Long highestScore;

    /** 0 不封禁 1 封禁 */
    @Excel(name = "0 不封禁 1 封禁")
    private String ban;

    /** 补签道具 */
    @Excel(name = "补签道具")
    private Long signInPrpos;

    /** 普通宝箱数量 */
    @Excel(name = "普通宝箱数量")
    private Long boxes;

    /** 超级宝箱数量 */
    @Excel(name = "超级宝箱数量")
    private Long superBoxes;

    /** 最近登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recentLoginTime;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setPhoneNum(String phoneNum) 
    {
        this.phoneNum = phoneNum;
    }

    public String getPhoneNum() 
    {
        return phoneNum;
    }
    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }
    public void setLv(Long lv) 
    {
        this.lv = lv;
    }

    public Long getLv() 
    {
        return lv;
    }
    public void setExp(Long exp) 
    {
        this.exp = exp;
    }

    public Long getExp() 
    {
        return exp;
    }
    public void setEnergys(Long energys) 
    {
        this.energys = energys;
    }

    public Long getEnergys() 
    {
        return energys;
    }
    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setAircraftId(Long aircraftId) 
    {
        this.aircraftId = aircraftId;
    }

    public Long getAircraftId() 
    {
        return aircraftId;
    }
    public void setDiamond(Long diamond) 
    {
        this.diamond = diamond;
    }

    public Long getDiamond() 
    {
        return diamond;
    }
    public void setPremiumDiamond(Long premiumDiamond) 
    {
        this.premiumDiamond = premiumDiamond;
    }

    public Long getPremiumDiamond() 
    {
        return premiumDiamond;
    }
    public void setUniversalProps(Long universalProps) 
    {
        this.universalProps = universalProps;
    }

    public Long getUniversalProps() 
    {
        return universalProps;
    }
    public void setHighestScore(Long highestScore) 
    {
        this.highestScore = highestScore;
    }

    public Long getHighestScore() 
    {
        return highestScore;
    }
    public void setBan(String ban) 
    {
        this.ban = ban;
    }

    public String getBan() 
    {
        return ban;
    }
    public void setSignInPrpos(Long signInPrpos) 
    {
        this.signInPrpos = signInPrpos;
    }

    public Long getSignInPrpos() 
    {
        return signInPrpos;
    }
    public void setBoxes(Long boxes) 
    {
        this.boxes = boxes;
    }

    public Long getBoxes() 
    {
        return boxes;
    }
    public void setSuperBoxes(Long superBoxes) 
    {
        this.superBoxes = superBoxes;
    }

    public Long getSuperBoxes() 
    {
        return superBoxes;
    }
    public void setRecentLoginTime(Date recentLoginTime) 
    {
        this.recentLoginTime = recentLoginTime;
    }

    public Date getRecentLoginTime() 
    {
        return recentLoginTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("openId", getOpenId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("phoneNum", getPhoneNum())
            .append("avatarUrl", getAvatarUrl())
            .append("lv", getLv())
            .append("exp", getExp())
            .append("energys", getEnergys())
            .append("roleId", getRoleId())
            .append("aircraftId", getAircraftId())
            .append("diamond", getDiamond())
            .append("premiumDiamond", getPremiumDiamond())
            .append("universalProps", getUniversalProps())
            .append("highestScore", getHighestScore())
            .append("ban", getBan())
            .append("signInPrpos", getSignInPrpos())
            .append("boxes", getBoxes())
            .append("superBoxes", getSuperBoxes())
            .append("recentLoginTime", getRecentLoginTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
